home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / security / doc / clippings / 911004-01 < prev    next >
Encoding:
Text File  |  1991-10-07  |  1.5 KB  |  61 lines

  1. Newsgroups: alt.security
  2. From: shipley@godzilla.tcs.com (Peter Shipley)
  3. Subject:  lofs security bug
  4. Message-ID: <1991Oct4.214436.18563@tcsi.com>
  5. Keywords:  lofs
  6. Date: Fri, 4 Oct 1991 21:44:36 GMT
  7.  
  8.  
  9. Tested under SunOS 4.1 ( and 4.1.1 )
  10.  
  11. Files can be deleted from a file systems mounted read-only via. the
  12. loopback filesystem.
  13.  
  14. This can be a security problem if you realy on loopback filesystem (lofs)
  15. for protection (for example is if you mount / readonly on /safe_root via lofs
  16. then chroot guest accounts onto /safe_root).
  17.  
  18. To repeat: [From memory]
  19.  
  20.     % whoami
  21.     shipley
  22.     % mkdir /tmp/tester
  23.     % cp /etc/motd /tmp/tester/file
  24.     % su
  25.     # mount
  26.     /dev/sd0a on / type 4.2 (rw,nosuid)
  27.     /dev/sd0g on /usr type 4.2 (rw)
  28.     # mkdir /lo
  29.     # mount -t lo -o ro /tmp/tester /lo
  30.     # mount
  31.     /dev/sd0a on / type 4.2 (rw,nosuid)
  32.     /dev/sd0g on /usr type 4.2 (rw)
  33.     /tmp/tester on /lo type 4.2 (rw)
  34.     # suspend
  35.     % cd /lo
  36.     % ls -l file
  37.     -rw-rw-rw-  1 shipley           23 Jun  4  1990 file
  38.     % touch foo
  39.     foo: Read-only file system
  40.     % rm file
  41.     % ls -l file
  42.     file not found
  43.     ls -Fa
  44.     ./    ../
  45.     %
  46.  
  47. Sun has been notified, the bugid is: 1053782
  48.  
  49. Work around:   Don't use the loopback filesystem for
  50.     file deletion/modification protection.
  51.  
  52.  
  53.  
  54.  
  55. -- 
  56. Pete Shipley: 
  57. email: shipley@berkeley.edu        Flames:  cimarron@postgres.berkeley.edu 
  58.        uunet!lurnix!shipley or ucbvax!shipley or shipley@tcs.com
  59. Spelling corections: /dev/null          Quote: "Anger is an energy"
  60.  
  61.